package spring.superrun.record.mvc.dto;

import com.sun.istack.internal.NotNull;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

public class LocationUpdateOrAddDto {

    /**
     * 地点详细名称
     */
    @NotNull
    @Length(min=2,max=20,message = "长度要在2到20之间")
    private String locationname;
    /**
     * 楼宇名称
     */
    @NotNull
    @Length(min=2,max=20,message = "长度要在2到20之间")
    private String building;
    /**
     * 排序id
     */
    @NotNull
    private Integer orderid;
    /**
     * 距离上一个点位的距离
     */
    @NotNull
    private Double lastdistance;




    public String getLocationname() {
        return locationname;
    }

    public void setLocationname(String locationname) {
        this.locationname = locationname;
    }

    public String getBuilding() {
        return building;
    }

    public void setBuilding(String building) {
        this.building = building;
    }

    public Integer getOrderid() {
        return orderid;
    }

    public void setOrderid(Integer orderid) {
        this.orderid = orderid;
    }

    public Double getLastdistance() {
        return lastdistance;
    }

    public void setLastdistance(Double lastdistance) {
        this.lastdistance = lastdistance;
    }
}
